package com.example.navigation_inclusive.graph

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import androidx.navigation.NavHost
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.navigation_inclusive.screen.HomeScreen
import com.example.navigation_inclusive.screen.LoginScreen
import com.example.navigation_inclusive.screen.Profile

object Router {
    const val login: String = "login"
    const val home: String = "home"
    const val profile: String = "profile"
}

@Composable
fun Navgraph(navController: NavHostController) {
    NavHost(navController = navController, startDestination = Router.login) {
        composable(Router.login) {
            LoginScreen(navController = navController)
        }
        composable(Router.home) {
            HomeScreen(navController = navController)
        }
        composable(Router.profile) {
            Profile(navController = navController)
        }
    }

}